<?php
function corder_user($user_id)
{
	global $db;
	$user = $db->pe_select('user',array('user_id'=>$user_id),'user_name,user_phone');
	return "姓名：".$user['user_name']."<br>电话：".$user['user_phone'];
}
function corder_product($product_id)
{
	global $db;
	$product = $db->pe_select('product',array('product_id'=>$product_id),'product_name');
	return $product['product_name'];
}
function corder_state($state)
{
	$result = "";
	if($state==0){
		$result = "等待审核";
	}elseif($state==1){
		$result = "同意兑换";
	}elseif($state==2){
		$result = "拒绝兑换";
	}
	return $result;
}
?>